package com.egame.manage.biz.server.gc;

import cn.egame.common.exception.ExceptionCommonBase;
import cn.egame.interfaces.gc.GameChargeInfo;

public class GameChargeServiceImpl {
	private static GameChargeServiceImpl instance = null;
	private static byte[] SyncRoot = new byte[1];
	private GameChargeServiceDao dao = null;
	
	public static GameChargeServiceImpl getInstance() throws ExceptionCommonBase {
		if (instance == null) {
			synchronized (SyncRoot) {
				if (instance == null) {
					instance = new GameChargeServiceImpl();
				}
			}
		}
		return instance;
	}
	
	public GameChargeServiceImpl() throws ExceptionCommonBase{
		super();
		dao = new GameChargeServiceDao();
	}
	
	public int setGameChargeInfo(GameChargeInfo bean) throws ExceptionCommonBase{
		return dao.setGameChargeInfo(bean);
	}
//
//	public int getChargeCount(int gId) throws ExceptionCommonBase{
//		return dao.getChargeCount(gId);
//	}
//		
}
